<template>
  <view-layout-redirect v-if="viewCode" :view-code="viewCode" :stores="stores" :parameterValue="parameterValue"></view-layout-redirect>
</template>
<script>

import ViewLayoutRedirect from "./ViewLayoutRedirect";

export default {
  name: "ViewLayoutRedirectComponent",
  props: {
    disabled: Boolean,
    record: Object,
    config: Object,
    obj: {
      type: Object,
      default: () => {
        return {}
      }
    },
    stores: {
      type: Object,
      default: () => {
        return {}
      }
    },
  },
  components: {
    ViewLayoutRedirect,
  },
  data() {
    return {
      viewCode: null,
      parameterValue: []
    }
  },
  created() {
    this.viewCode = this.obj.viewCode
    this.parameterValue = this.obj.parameterValue || []
  },
  methods: {}
}
</script>
